package com.zzzy.doc.dao.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzzy.doc.dao.entity.Document;
import com.zzzy.doc.dto.DocumentStatusCountDto;
import com.zzzy.doc.vo.document.my.MyDocPageReq;
import com.zzzy.framework.core.mybatis.mapper.BaseMapperE;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公文基本信息
 *
 * @author fc
 * @since 2024-08-09
 */
public interface DocumentMapper extends BaseMapperE<Document> {

    long selectProcessedCount(Long userId);

    List<DocumentStatusCountDto> selectMyDocumentStatusCountList(Long userId);

    IPage<Document> selectMyDocumentPage(IPage<Document> mpPage, @Param("queryReq") MyDocPageReq queryReq, @Param("userId") Long userId);
}
